<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改书籍</title>
    <%--    BootStrap美化界面--%>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

</head>
<body>

<div class="container">

    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small>修改书籍</small>
                </h1>
            </div>
        </div>
    </div>

    <form action="${pageContext.request.contextPath}/book/updateBook" method="post">

<%--        出现的问题，我们提交了修改的SQL请求，但是修改失败，初次考虑，是事务问题，配置完毕事务，依旧失败--%>
<%--        看一下SQL语句，能否执行成功：SQL执行失败，修改未成功--%>
<%--       前端传递影藏域    --%>
        <input type="hidden" name="bookID" value="${QBook.bookID}">
        <div class="form-groud">
            <label>书籍名称：</label>
            <input type="text" name="bookName" class="form-control" value="${QBook.bookName}" required >
        </div>
        <div class="form-groud">
            <label>书籍数量：</label>
            <input type="text" name="bookCounts" class="form-control" value="${QBook.bookCounts}" required >
        </div>
        <div class="form-groud">
            <label>书籍描述</label>
            <input type="text"  name="detail" class="form-control" value="${QBook.detail}" required >
        </div>
        <div class="form-groud">
            <input type="submit" class="form-control" value="修改">
        </div>

    </form>




</div>


</div>

</body>
</html>


